SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO


CREATE PROCEDURE dbo.DnnProduct_DeletePortalInfo
	@PortalID int

AS
	/* Delete all the Portal Modules */
	DELETE
	FROM dbo.DnnProduct_Modules
	WHERE PortalId = @PortalID

	/* Delete all the Portal Skins */
	DELETE
	FROM dbo.DnnProduct_Packages
	WHERE  PortalId = @PortalID

	/* Delete Portal */
	DELETE
	FROM dbo.DnnProduct_Portals
	WHERE  PortalId = @PortalID
GO
